package com.agrm.model.category.pojo;

import com.agrm.model.common.dtos.BaseModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@TableName("category")
@Getter
@Setter
public class Category extends BaseModel {

    @TableId(value = "id" , type = IdType.AUTO)
    private Integer id;

    private Integer parentId;

    private String name;

    private String title;

    private String tag;

    private String icon;

    private String summary;

    private Integer sort;

    private String description;

    //忽略
    @TableField(exist = false)
    private List<Category> children;

}
